#include <iostream>

using namespace std;

int recStringLength(char str[])
{
	if (str[0] == '\0')
	{
		return 0;
	}
	else
	{
		return 1 + recStringLength(str + 1);
	}
}

int main()
{
	cout << recStringLength("sirap i paris") << endl;
	cout << recStringLength("kalle") << endl;

	system("pause");
	return 0;
}